# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=gnome-sudoku
pkgver=45.2
pkgrel=0
arch="all"
url="https://wiki.gnome.org/Apps/Sudoku"
pkgdesc="Test your logic skills in this number grid puzzle"
license="GPL-3.0-or-later"
makedepends="yelp-tools vala meson libgee-dev libadwaita-dev gtk4.0-dev json-glib-dev qqwing-dev itstool desktop-file-utils"
source="https://download.gnome.org/sources/gnome-sudoku/${pkgver%.*}/gnome-sudoku-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}
sha512sums="
b2b47efcc0bde17ff09a38bb7df22b2d1381c9d1552612f7836143bf7b79691ebd623f4c3bb0a65d9956eb92d81df11fb4542aa439ed85fc83c52c429125e88b  gnome-sudoku-45.2.tar.xz
"
